package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Dish;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

//菜品的持久层接口
@Repository
public interface DishMapper extends BaseMapper<Dish> {

    //根据分类id查询菜品的数量
    int countByCategoryId(Long id);
}
